package com.wwt.springboot_vue.mapper;

import com.wwt.springboot_vue.bean.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderMapper {
    List<Order> findAll();
    List<Order> findByStatus(@Param("info") String info);
    Order findById(int order_id);
    void delete(int order_id);
    void add(@Param("user_id") Integer user_id, @Param("goods_id") Integer goods_id, @Param("order_status") String order_status, @Param("order_time") String order_time);
    void update(Order order);
    List<Order> findByLimit(@Param("start") int start, @Param("size") int size);
    List<Order> findByStatusLimit(@Param("info") String info, @Param("start") int start, @Param("size") int size);
}
